import request from '@/utils/request'

//查询环境
export function listEnv(query) {
  return request({
    url: "/tsstEnv/list",
    method: 'get',
    params: query
  })
}
//查询环境
export function listDefaultEnv(query) {
    return request({
        url: "/tsstEnv/list",
        method: 'get',
        params: query
    })
}

//新增环境
export function insertEnv(data) {
  return request({
    url: "/tsstEnv/insert",
    method: 'post',
    data: data
  })
}

// 删除环境
export function deleteEnv(id) {
    return request({
      url: '/tsstEnv/delete/' + id,
      method: 'delete'
    })
}

//修改环境
export function updateEnv(data) {
    return request({
      url: "/tsstEnv/update",
      method: 'post',
      data: data
    })
}

// 删除环境
export function updateDefault(id) {
    return request({
      url: '/tsstEnv/updateDefault/' + id,
      method: 'get'
    })
}